<?php

namespace App\Console\Commands;

use App\Models\System\UserToken;
use App\Pool\Common;
use App\Utils\Encryption;
use App\Utils\Format;
use App\Utils\MessageEngine;
use App\Utils\Output;
use Illuminate\Console\Command;

class ClearTokenCommand extends Command
{
    /**
     * The name and signature of the console command.
     *
     * @var string
     */
    protected $signature = 'command:clearToken';

    /**
     * The console command description.
     *
     * @var string
     */
    protected $description = '清理登录用户';

    /**
     * Create a new command instance.
     *
     * @return void
     */
    public function __construct()
    {
        parent::__construct();
    }

    /**
     * Execute the console command.
     *
     * @return int
     */
    public function handle()
    {
        UserToken::query()->delete();
    }
}
